﻿using Common.Data.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Warranty.Configuration;
using Warranty.Model.Model;

namespace Warranty.Data.DBConfig
{
    public class SerialNumberPndHistConfiguration : DBConfig<SerialNumberPndHist>
    {
        public SerialNumberPndHistConfiguration()
            : base(SystemConfiguration.Schema, SystemConfiguration.NamingType, SystemConfiguration.TABLE_PREFIX)
        {
            HasKey(k => new { k.SerialNo, k.PndType});
            Property(c => c.SerialNo).IsRequired();
            Property(c => c.PndType).IsRequired();
        }
    }
}
